package com.mrlv.ht.service.impl;

import java.util.List;
import java.util.UUID;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mrlv.ht.mapper.ModuLeMapper;
import com.mrlv.ht.pojo.ModuLe;
import com.mrlv.ht.pojo.ModuLeExample;
import com.mrlv.ht.service.IModuLeService;

@Service("moduLeService")
public class ModuLeServiceImpl implements IModuLeService {
	
	@Resource
	private ModuLeMapper moduLeMapper;

	@Override
	public List<ModuLe> selectByExample(ModuLeExample example) {
		return moduLeMapper.selectByExample(example);
	}

	@Override
	public void insert1(ModuLe module) {
		module.setModuleId(UUID.randomUUID().toString());
		moduLeMapper.insert1(module);	
	}

	@Override
	public int insertSelective(ModuLe module) {
		module.setModuleId(UUID.randomUUID().toString());
		return moduLeMapper.insertSelective(module);
	}

	@Override
	public int selectCount() {
		return moduLeMapper.selectCount();
	}

	@Override
	public List<ModuLe> findAll() {
		return moduLeMapper.findAll();
	}

	@Override
	public int deleteBatch(String[] ModuLeId) {
		return moduLeMapper.deleteBatch(ModuLeId);
	}

	@Override
	public int updateBatch1(String[] ModuLeId) {
		return moduLeMapper.updateBatch1(ModuLeId);
	}

	@Override
	public int updateBatch0(String[] ModuLeId) {
		return moduLeMapper.updateBatch0(ModuLeId);
	}

	@Override
	public void updateByPrimaryKeySelective(ModuLe moduLe) {
		moduLeMapper.updateByPrimaryKeySelective(moduLe);
	}

}
